import 'package:WeChat/home/conversion.dart';
import 'package:WeChat/home/full_width_icon_button.dart';
import 'package:WeChat/model/conver.dart';
import 'package:flutter/material.dart';

/**
 * @Author: zhouge
 * @Description:
 * @Date: Created in 11:54 2020-05-05
 * @Modified By: 配置文件
 **/

// 颜色管理
class AppColors {
  static const BackgroundColor = 0xffebebeb;  //背景色
  static const AppBarColor = 0xff303030;
  static const TabIconActiveColor = 0xff46c11b; // 初始化颜色
  static const TabIconNormalColor = 0xff999999; // 激活颜色
  static const ConversationItemBg = 0xffffffff; //对话框底色
  static const TitleTextColor = 0xff353535; //对话框文字颜色
  static const DesTextColor = 0xff9e9e9e; //对话框描述文字颜色
  static const DividerColor = 0xffd9d9d9; //对话框描述文字颜色
  static const NotifyDotBg = 0xffff3e3e; //头像角标消息未读颜色
  static const NotifyDotText = 0xffffffff; //头像角标消息未读颜色
  static const ConversationMuteIcon = 0xffd8d8d8; // 静音颜色
  static const ContactGroupTitleBg = 0xffd8d8d8; // 静音颜色
  static const ContactGroupTitleText = 0xff888888; // 静音颜色
  static const IndexLetterBoxBg = Colors.black45; // 静音颜色
  static const HearderCardTitleText = 0xff353535; //个人名字颜色
  static const HearderCardDesText = 0xffa9a9a9; // 个人描述名字


}

// 字体样式定义
class AppStyles{
  static const TitleStyle = TextStyle(
    fontSize: 14.0,
    color: Color(AppColors.TitleTextColor),
  );
  static const DesStyle = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.DesTextColor),
  );
  // 未读消息样式
  static const UnreadMsgCountDotStyle = TextStyle(
    fontSize: 10.0,
    color: Color(AppColors.NotifyDotText),
  );
  static const GroupTitleItemTextStyle = TextStyle(fontSize: 14.0,
      color:Color(AppColors.ContactGroupTitleText));
  static const IndexLetterBoxTextStyle = TextStyle(fontSize:64.0, color:Colors.white,);
  static const FullWidthIconButtonStyle = TextStyle(fontSize:64.0, color:Colors.white,);
  static const HeaderCardTitleTextStyle = TextStyle(
      fontSize: 14.0,color: Color(AppColors.HearderCardTitleText));
  static const HeaderCardDscTextStyle = TextStyle(
    fontSize: 12.0,
    color: Color(AppColors.HearderCardDesText),
  );
}

class Constants{
  static const IconFontFamily="appIconFont";
  static const ConversationAvatarSize=48.0;
  static const DividerWidth=1.0;
  static const UnreadMsgNotifyDotSize=18.0;
  static const ContactAvatarSize=42.0;
  static const IndexBarWidth = 20.0;
  static const IndexLetterBoxSize =114.0;
  static const IndexLetterBoxRadius = 4.0;
  static const FullWidthIconButtonSize = 30.0;
  static const DiscoverRowButtonSize = 15.0;
}

// 自定义图标
class MyIcons {
  // 下面为静态的图标显示
  // 微信图标
  static const IconData wechat =
      IconData(0xe620, fontFamily: 'myIcon', matchTextDirection: true);
  // 我的图标
  static const IconData owner =
      IconData(0xe630, fontFamily: 'myIcon', matchTextDirection: true);
  // 发现图标
  static const IconData discover =
      IconData(0xe746, fontFamily: 'myIcon', matchTextDirection: true);
  // 通讯录图标
  static const IconData address =
      IconData(0xe604, fontFamily: 'myIcon', matchTextDirection: true);
  //实心微信
  static const IconData drak_wechat =
      IconData(0xe631, fontFamily: 'myIcon', matchTextDirection: true);
  //实心我的
  static const IconData drak_owner =
      IconData(0xe632, fontFamily: 'myIcon', matchTextDirection: true);
  // 放大镜
  static const IconData zoom =
      IconData(0xe699, fontFamily: 'myIcon', matchTextDirection: true);
  // 添加
  static const IconData add =
      IconData(0xe678, fontFamily: 'myIcon', matchTextDirection: true);
  //群聊
  static const IconData all_chat =
      IconData(0xe60a, fontFamily: 'myIcon', matchTextDirection: true);
  // 添加朋友
  static const IconData add_person =
      IconData(0xe600, fontFamily: 'myIcon', matchTextDirection: true);
  // 帮助和反馈
  static const IconData help =
      IconData(0xe833, fontFamily: 'myIcon', matchTextDirection: true);
  // 扫-扫
  static const IconData scan =
      IconData(0xe663, fontFamily: 'myIcon', matchTextDirection: true);
  // 扫-扫
  static const IconData pay =
      IconData(0xe63a, fontFamily: 'myIcon', matchTextDirection: true);
}
